package no.sachmuld.methodcombination.examples.adapter.multipleinheritance;

import no.sachmuld.methodcombination.api.MethodInvocation;

/**
 *
 */
public class Anonymous extends Person {

    public Anonymous(String name) {
        super(name);

        with(new PersonBehaviour() {

            @Override
            public String toString(MethodInvocation<String> methodInvocation) {
                return "John Doe";
            }

        });
    }
}
